<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var yue=prompt ("请输入月份","");
        switch(yue){
            case "3" :
            case "4" :
            case "5" :
            alert("春");break;
            case "6":
            case "7" :
            case "8" :
            alert("夏");break;
            case "9" :
            case "10" :
            case "11" :
            alert("秋");break;
            case "12" :
            case "1" :
            case "2" :
            alert("冬");break;
            default:
            alert("请输入正确的数字");
        }
    </script>
</head>
<body>
    
</body>
</html>